package com.chushouya.order.dto.api.partnernotify;

import com.alibaba.fastjson.annotation.JSONField;
import com.general.framework.core.lang.Dates;
import com.chushouya.order.constants.PartnerNotifyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("订单完成")
public class CompleteNotifyDTO extends PartnerBaseNotify{
    public CompleteNotifyDTO(){

        super.setNotifyType(PartnerNotifyTypeEnum.COMPLETE.value());
        super.setNotifyName(PartnerNotifyTypeEnum.COMPLETE.named());
    }

    /**
     * 订单完成
     */
    private CompleteNotifyData data;

    @Data
    @ApiModel("订单完成数据")
    public static class CompleteNotifyData{

        @ApiModelProperty("订单状态")
        private Integer orderStatus;

        @ApiModelProperty("完成时间")
        @JSONField(format= Dates.FMT_FULL_TIME)
        private Date completeTime;

        @ApiModelProperty("成交金额")
        private BigDecimal completePrice;

        @ApiModelProperty("完成备注")
        private String remark;


    }
}
